# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kalk
pkgver=0.1
pkgrel=0
pkgdesc="A powerful cross-platfrom calculator application"
arch="all !armhf" # Blocked by qt5-qtdeclarative
url="https://invent.kde.org/plasma-mobile/kalk"
license="GPL-3.0-or-later"
makedepends="
	bison
	extra-cmake-modules
	flex
	kconfig-dev
	kcoreaddons-dev
	ki18n-dev
	kirigami2-dev
	kunitconversion-dev
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	"
source="https://invent.kde.org/plasma-mobile/kalk/-/archive/V$pkgver/kalk-V$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-V$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="5794ea03deef4d86c312625cfd2fe834ca454341707ae41cad1eb6043272616b539ee467b29ba7eba82400cd0102e3376c801cf88e470979fa9640ae791b0cc5  kalk-V0.1.tar.gz"
